var netTool
var apiPath = 'capi/V2/FFOilMachine/ffMoveOilMachine/'
var mDate = require("../tools/date")
function MoveOilMachine(_netTool) {
	netTool = _netTool
  this.list = function (data, fn) {
    netTool.getAjaxUrlValueBackground(apiPath + 'list', {
	 user_id:'',
	 rows:100,
      ...data
    }, function (res) {
      typeof fn == 'function' && fn(res);
    })
  }
 
  this.update = function(data,fn)
  {
    netTool.getAjaxUrlValueBackground(apiPath +'update', {
		 user_id:'',
      ...data,
    }, function (res) {
      typeof fn == 'function' && fn(res);
    })
  }
}
module.exports = MoveOilMachine;